<div class="panel bar fix hasMenu" style="{{if position_top}}top:{{:position_top}};{{/if}}{{if position_left}}left:{{:position_left}};{{/if}}" tpl="dictionary_pattern">
	<div class="title">{{if method && method=="modify"}}{{:lang.modify}}{{else}}{{:lang.New}}{{/if}}{{:lang.dictionary}}
		<ul class="toolbar right">
			<li title="{{lang.close}}" class="button bar-close ico close">
			</li>
		</ul>
	</div>
	<form>
		<div class="grid-container">

			<div class="grid">
				<div class="col col-7-12">
					<label>{{:lang.dictionary_name}}
						<input name="name" {{if form}} value="{{:form.name}}" {{/if}} />
					</label>
				</div>
				<div class="col col-1-12">
					<label>长度
						<input name="length" {{if form}} value="{{:form.length}}" {{/if}}/>
					</label>
				</div>
				<div class="col col-3-12">
					<label>{{:lang.create_date}}
						<input readonly />
					</label>
				</div>
				<div class="col col-2-12">
					<label contenteditable="">{{:lang.author}}
						<input readonly />
					</label>
				</div>
			</div>

			<div class="grid">
				<label class="h-max">备注
					<textarea name="comment">{{if form}}{{:form.comment}}{{/if}}</textarea>
				</label>
			</div>
		</div>

		<div class="row">
			<label>配置模式</label>
			<table>
				<thead>
					<tr>
						<th style="width:8em">字段名</th>
						<th>字符串模式</th>
						<th style="width:1%"><a class="button alert ico trash" id="trash" title="清空"></a></th>
					</tr>
				</thead>
				<tbody>
				{{if options}}
					{{props options}}
					<tr data-key="{{>key}}">
						<td>{{>key}}</td>
						<td>{{>prop}}</td>
						<td><a class="button warning ico delete"></a></td>
					</tr>
					{{/props}}
				{{/if}}
					<tr>
						<td><input name="key" />
						</td>
						<td><input name="pattern" />
						</td>
						<td><a class="button primary ico add"></a>
						</td>
					</tr>
				</tbody>
			</table>
		</div>

		<div class="row">
			<ul class="toolbar right">
				{{if method && method=="modify"}}
				<li class="button success large" id="modify" title="{{:lang.modify}}">
					{{:lang.modify}}
				</li>
				{{else}}
				<li class="button primary large" id="create" title="{{:lang.create}}">
					{{:lang.create}}
				</li>
				{{/if}}
				<li class="button warning large bar-close" id="cancel" title="{{:lang.cancel}}">
					{{:lang.cancel}}
				</li>
			</ul>
		</div>
	</form>
</div>